package oakclub.entity;

public class LocationEntity extends BaseEntity
{
    private double latitude;
    private double longitude;
    private CityEntity city;
    private int distance;

    public LocationEntity()
    {

    }

    public LocationEntity(String cityName, String countryName)
    {
        this.city = new CityEntity(cityName, countryName);
    }

    public LocationEntity(double latitude, double longitude)
    {
        this.latitude = latitude;
        this.longitude = longitude;
    }

    public double getLatitude()
    {
        return latitude;
    }

    public void setLatitude(double latitude)
    {
        this.latitude = latitude;
    }

    public double getLongitude()
    {
        return longitude;
    }

    public void setLongitude(double longitude)
    {
        this.longitude = longitude;
    }

    public CityEntity getCity()
    {
        return city;
    }

    public void setCity(CityEntity city)
    {
        this.city = city;
    }

    public int getDistance()
    {
        return distance;
    }

    public void setDistance(int distance)
    {
        this.distance = distance;
    }
}
